import axios from "@/tool/axios";
//验证码获取
export const getSmsCode = (obj) => axios.post("/smsCode",obj)
//登录
export const getLogin=(obj)=>axios.post('/login',obj)
/**
 * api/app/userInfo
 */

export const getUserInfo = () => axios.get("/userInfo")


/**
* api/app/password
*/

export const setUserPassword = (obj) => axios.post("/password", obj)
/**
 * file 
 */
export const postImg = (obj) => axios.post("/public/img", obj)



/**
* file 
*/
export const putUser = (obj) => axios.put("/user", obj)
